# Code options
#----------------------------------------------------------
 OPT += -DGASIDS_ADD_BILLION # Code assumes gas ParticleIDs are CDM ParticleIDs + 10^9
			     # otherwise, they are assumed to run 1:NumPart_Total(0)
#OPT += -DTYPE4_IS_CDM       # To override assumption that type 4 is stars
 OPT += -DBINARY_LIST        # Also dumps simple binary table of force-free coordinates


# Comp mode selection
#----------------------------------------------------------
COMPMODE = "optimised"
#COMPMODE = "debug"

# System selection
#----------------------------------------------------------
include Makeopt.intel.green

# Compilation
#----------------------------------------------------------
OPTIONS         = $(OPT)
EXEC            = trace_unique
OBJS            = vars.o memory.o indexx_module.o startup.o abort.o input.o processing.o output.o main.o

%.o: %.f Makefile
	$(FC) $(FOPT) $(INC) $(MOD) $(OPTIONS) -c $<

%.o: %.f90 Makefile
	$(FC) $(FOPT) $(INC) $(MOD) $(OPTIONS) -c $<

%.o: %.F90 Makefile
	$(FC) $(FOPT) $(INC) $(MOD) $(OPTIONS) -c $<

$(EXEC): Makefile $(OBJS)
	$(FC) $(FOPT) $(INC) $(OPTIONS) $(LIB) $(OBJS) $(MOD) $(RUN) -o $(EXEC)

clean:
	\rm -f *.x *.o *~ *.mod $(EXEC)






